home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
Symbols
/
Other
/
change-order-mask
< prev
next >
Wrap
Text File
|
1998-10-22
|
1KB
|
39 lines
change-order-mask material mask
This function lets you reorder the material which can be
lengths,symbols or vectors according to a mask which can
also be lengths,symbols or vectors.
no chords or pauses are allowed (yet)
this is a good function if you want to keep the material
intact but reshape it.
use the visualizer and longer material than these examples
to easier see the effect.
first draw the mask, then the material
and finally the function to
see how it works.
Some material works better than other.
It is hard to reshape a list of 1:s
(change-order-mask '(a a c s c d d e e g)
(list-a-scale 0 10))
->(a a c c d d e e g s)
(change-order-mask '(a a c s c d d e e g)
(gen-noise-gaussian 12 0.45))
->(d a c s e a g c d e)
(change-order-mask '(1/1 1/4 1/2 7/8 3/8 5/16 9/8 5/4 3/32)
(list-a-scale 'a 10))
->(3/32 1/4 5/16 3/8 1/2 7/8 1/1 9/8 5/4)
(change-order-mask
(vector-round 1 34 (gen-noise-gaussian 21 0.45))
(infinity-series 21 '(a c)))
->#(21 22 16 29 21 19 13 34 15 26 19 21 25 13 1 34 21 16 11 31 16)
see also morphing which uses this function.